package com.zjmzxfzhl.modules.flowable.common.listener;

import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.ExecutionListener;
import org.springframework.stereotype.Component;

/**
 * 任务节点前置监听处理类
 *
 * @author: 庄金明
 **/
@Component
public class MyExecutionListener implements ExecutionListener {

    @Override
    public void notify(DelegateExecution execution) {
        System.out.println(execution.getEventName());
    }

    public void notify2(DelegateExecution execution, String handler) {
        System.out.println(execution.getEventName());
        System.out.println(handler);
    }
}